-- GENERATED SPELL FOR [Azure Warder] --


function spell0_26716(pUnit, Event) --@Mana Shield,Self--
pUnit:FullCastSpellOnTarget(17741,pUnit)
pUnit:RegisterEvent('Sorts_26716', 617, 1)
end

function spell1_26716(pUnit, Event) --@Mana Shield,Self--
pUnit:FullCastSpellOnTarget(56778,pUnit)
pUnit:RegisterEvent('Sorts_26716', 634, 1)
end

function spell2_26716(pUnit, Event) --@Silence,n/a--
pUnit:FullCastSpellOnTarget(6726,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26716', 5339, 1)
end

function spell3_26716(pUnit, Event) --@Silence,n/a--
pUnit:FullCastSpellOnTarget(56777,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26716', 5251, 1)
end

function Sorts_26716(pUnit, Event)
local choix_sorts_26716 = math.random(0, 3)
if choix_sorts_26716 == 0 then
pUnit:RegisterEvent('spell0_26716', 1, 1)
end
if choix_sorts_26716 == 1 then
pUnit:RegisterEvent('spell1_26716', 1, 1)
end
if choix_sorts_26716 == 2 then
pUnit:RegisterEvent('spell2_26716', 1, 1)
end
if choix_sorts_26716 == 3 then
pUnit:RegisterEvent('spell3_26716', 1, 1)
end
end

function mob26716_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26716', math.random(1500, 3000), 1)
end

function mob26716_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26716_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26716_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26716, 1, 'mob26716_Action')
RegisterUnitEvent(26716, 2, 'mob26716_Leave')
RegisterUnitEvent(26716, 3, 'mob26716_Kill')
RegisterUnitEvent(26716, 4, 'mob26716_Die')
